package com.boolib.animate.commons.base.face;

import com.github.pagehelper.PageInfo;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author nier
 * @create 2020-02-19 18:12
 */

public interface BaseSqlQueryExampleService<T> {

    PageInfo<T> queryByExampleAndRowBounds(Example example, Integer page, Integer size);

    Integer queryCountByExample(Example example);

    T queryOneByExample(Example example);
    T queryOneByExampleThrow(Example example);
    List<T> queryByExample(Example example) ;

}
